<?php
/**
 * CakePOWER
 * Core Configuration
 * 
 * @author:			Marco Pegoraro
 * @mail:			marco(dot)pegoraro(at)gmail(dot)com
 * 
 * 21 September 2009
 * Core configuration rules.
 * 
 * This file is loaded after "/app/config/power.php" who can pre-define all these informations
 * overriding this built-in configuration.
 * 
 * Questa configurazione definisce le principali costanti di path utilizzate da CakePOWER
 * per gestire l'organizzazione dei suoi files.
 * E' possibile forzare queste impostazioni di default per creare delle versioni personalizzate
 * del framework contestualizzando la verticalizzazione a piccole porzioni dello stesso.
 * 
 */


/**
 * CakePOWER's important paths.
 * Theese paths are used by the system to manage file inclusion and CakePHP extensions.
 */

# Global paths.                                                                                   #
if ( !defined('POWER_LIB') ) 					define( 'POWER_LIB', 						POWER.'lib'.DS );
if ( !defined('POWER_INC') ) 					define( 'POWER_INC', 						POWER.'includes'.DS );

# CakePOWER objects repositories paths.                                                           #
if ( !defined('POWER_CONTROLLERS') )			define( 'POWER_CONTROLLERS',				POWER.'controllers'.DS );
if ( !defined('POWER_COMPONENTS') )				define( 'POWER_COMPONENTS',					POWER_CONTROLLERS.'components'.DS );

if ( !defined('POWER_MODELS') )					define( 'POWER_MODELS',						POWER.'models'.DS );
if ( !defined('POWER_BEHAVIORS') )				define( 'POWER_BEHAVIORS',					POWER_MODELS.'behaviors'.DS );

if ( !defined('POWER_VIEWS') )					define( 'POWER_VIEWS',						POWER.'views'.DS );
if ( !defined('POWER_HELPERS') )				define( 'POWER_HELPERS',					POWER_VIEWS.'helpers'.DS );

# Global plugins repository paths.                                                                #
if ( !defined('POWER_PLUGINS') )				define( 'POWER_PLUGINS', 					POWER.'plugins'.DS );
if ( !defined('APP_PLUGINS') )					define( 'APP_PLUGINS', 						CAKE_CORE_INCLUDE_PATH.DS.'power_plugins'.DS );

# CakePOWER files integration paths.                                                              #
if ( !defined('POWER_ROUTES') )					define( 'POWER_ROUTES',						POWER.'includes'.DS.'plugins.routes.php' );

if ( !defined('POWER_APP_CONTROLLER') )			define( 'POWER_APP_CONTROLLER',				POWER.'app_controller.php' );
if ( !defined('POWER_APP_COMPONENT') )			define( 'POWER_APP_COMPONENT',				POWER_COMPONENTS.'app_component.php' );
if ( !defined('POWER_APP_COMPONENT_DEFAULT') )	define( 'POWER_APP_COMPONENT_DEFAULT',		POWER_COMPONENTS.'app_component_default.php' );

if ( !defined('POWER_VIEW') )					define( 'POWER_VIEW',						POWER_VIEWS.'app_view.php' );
if ( !defined('POWER_APP_HELPER') )				define( 'POWER_APP_HELPER',					POWER_HELPERS.'app_helper.php' );
if ( !defined('POWER_APP_HELPER_DEFAULT') )		define( 'POWER_APP_HELPER_DEFAULT',			POWER_HELPERS.'app_helper_default.php' );

if ( !defined('POWER_APP_MODEL') )				define( 'POWER_APP_MODEL',					POWER.'app_model.php' );
if ( !defined('POWER_APP_BEHAVIOR') )			define( 'POWER_APP_BEHAVIOR',				POWER_BEHAVIORS.'app_behavior.php' );
if ( !defined('POWER_APP_BEHAVIOR_DEFAULT') )	define( 'POWER_APP_BEHAVIOR_DEFAULT',		POWER_BEHAVIORS.'app_behavior_default.php' );

?>